package com.chif.springbootdubboconsumer.service;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service // 业务类
public class UserService {
    @DubboReference // 调用注册中心服务
    HelloService helloService;

    public void hello() {
        System.out.println(helloService.sayHello());
    }
}
